﻿/*CREATE TRIGGER [dbo].[CultivosEstaciones_DeletionTrigger] 
    ON [CultivosEstaciones] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[CultivosEstaciones_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[EstacionGuid] = [CultivosEstaciones_Tombstone].[EstacionGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[CultivosEstaciones_Tombstone] 
    ([EstacionGuid], DeletionDate)
    SELECT [EstacionGuid], GETUTCDATE()
    FROM deleted 
END*/